<{include file="Toy/toy_top.html"}>
    </head>
    <body>
    	<div id="wrap">
			<{include file="Toy/toy_nav.html"}>
    		
    		<div class="container matchPage">
    			<div class="match-box">
    				<div class="img-box">
						<div class="toy" >
							<img src="<{$mainItem.headpic}>" data-id="<{$mainItem.id}>" />
						</div>
						<p class="nickname"><{$mainItem.ownerNickname}></p>
					</div>
					<div class="detail">
						<p class="state"><i></i>匹配成功！</p>
						<!--reverse 箭头反向-->
						<div class="line reverse"></div>
						<p class="date"><{$tradeItem.agreeTime|date_format:'%m-%d %H:%M'}></p>
					</div>
					<div class="img-box">
						<div class="toy" >
							<img src="<{$slaveItem.headpic}>" data-id="<{$slaveItem.id}>"/>
						</div>
						<p class="nickname"><{$slaveItem.ownerNickname}></p>
					</div>
    			</div>

				<{if $commentList['total'] eq 0}>
    			<!--未进行任何留言-->
    			<div class="nodata" >用户还未进行任何留言。</div>
    			<{else}>
    			<div class="lists" >
					<{foreach from=$commentList['list']  item=item}>
    				<div class="item">
    					<div class="section-1 clearfix">
    						<span class="avatar">
    							<img class="uhead" src="<{$item.uid|headpic}>" />
    						</span>
    						<span class="nickname"><{$item.nickname}></span>
    						<span class="date"><{$item.addTime|date_format:'%m-%d %H:%M'}></span>
	    				</div>
	    				<div class="section-2">
							<{$item.content}>
	    				</div>
	    				<div class="section-3">
							<{foreach from=split(',',$item.album) item=pic}>
							<{if $pic}>
							<a href="javascript:void(0);" class="img-box" style="background: url(<{$pic}>) no-repeat;" data-src="<{$pic}>"></a>
							<{/if}>
							<{/foreach}>
	    				</div>
    				</div>
					<{/foreach}>

    			</div>
				<{/if}>
    		</div>

			<{include file="Toy/toy_foot.html"}>
    	</div>
    	<script src="<{$preStaticUrl}>Wap/toy/js/zepto.min.js"></script>
    	<script src="<{$preStaticUrl}>Wap/toy/js/index.js"></script>
    	<script>
			$('.toy img').on('click',function(obj){				
				location.href="<{u('detail?itemId=')}>"+$(obj.target).attr('data-id');
			});
    	</script>
	</body>
</html>
